package cn.template.serve_project.controller;

import cn.template.serve_project.encrypt.CiphertextObj;
import cn.template.serve_project.encrypt.aes.AESUtil;
import cn.template.serve_project.encrypt.rsa.RSAUtil;
import cn.template.serve_project.result.Result;
import org.springframework.web.bind.annotation.*;

/**
 * RSA秘钥
 */
@RestController
@RequestMapping("/encrypt")
public class EncryptController {

    /**
     * 获取RSA公钥
     * @return
     */
    @GetMapping("/rsa")
    public Result<String> getRsaPublicKey() {
        return Result.success(RSAUtil.publicKey);
    }


}
